package net.valerijtimakov.homefinances.domain.finances;

import java.util.Date;
import net.valerijtimakov.homefinances.domain.common.OperationItem;

public class TransferItem extends OperationItem {

	private static final long serialVersionUID = 1L;
	
	private float ammount;
	private long toAccountId;
	
	public TransferItem() {
		super();
	}
	
	public TransferItem(long id, String name, long cathegoriId, Date date, 
		long fromAccountId, long toAccountId, float ammount, long currencyId) 
	{
		super(id, name, cathegoriId, date, fromAccountId, currencyId);
		this.ammount = ammount;
		this.toAccountId = toAccountId;
	}

	public float getAmmount() {
		return ammount;
	}

	public void setAmmount(float ammount) {
		this.ammount = ammount;
	}

	public long getToAccountId() {
		return toAccountId;
	}

	public void setToAccountId(long toAccountId) {
		this.toAccountId = toAccountId;
	}

	public long getFromAccountId() {
		return getAccountId();
	}

	public void setFromAccountId(long toAccountId) {
		setAccountId(toAccountId);
	}
	
}
